package com.demo.demospringbootstarter.util;

import com.demo.demospringbootstarter.service.DemoService;
import com.demo.demospringbootstarter.util.spring.ApplicationContextHolder;

public class DemoUtil {

    public static String send(String fromPhone, String toPhone, String content) {
        DemoService demoService = ApplicationContextHolder.getContext().getBean(DemoService.class);
//        demoService.test();
        demoService.send(fromPhone, toPhone, content);
        return "success";
    }
}
